<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="libs/html5.js"></script>
    <script type="text/javascript" src="libs/respond.min.js"></script>
    <script type="text/javascript" src="libs/PIE_IE678.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="libs/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="libs/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="libs/Hui-iconfont/1.0.7/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="libs/icheck/icheck.css" />
    <link rel="stylesheet" type="text/css" href="libs/h-ui.admin/skin/default/skin.css" id="skin" />
    <!--[if IE 6]>
    <script type="text/javascript" src="libs/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>我的工作台</title>
</head>
<body>
<div class="page-container">
    <p class="f-20 text-success"><span id="group_name"></span>-<span id="real_name"></span>,欢迎你登录&nbsp;<span id="siteName"></span>&nbsp;！</p>
    <p >上次登录时间：<span id="last_login_time"></span></p>
    <table class="table table-border table-bordered table-bg">
        <thead>
        <tr>
            <th colspan="7" scope="col">测试统计</th>
        </tr>
        <tr class="text-c">
            <th>统计</th>
            <th>测试用例</th>
            <th>测试集</th>
            <th>测试数据</th>
            <th>测试成功</th>
            <th>测试失败</th>
        </tr>
        </thead>
        <tbody>
        <tr class="text-c">
            <td>总数</td>
            <td count-type="interfaceInfo">0</td>
            <td count-type="message">0</td>
            <td count-type="messageScene">0</td>
            <td count-type="testSet">0</td>
            <td count-type="testReport">0</td>
        </tr>
        <tr class="text-c">
            <td>今日</td>
            <td count-type="interfaceInfo">0</td>
            <td count-type="message">0</td>
            <td count-type="messageScene">0</td>
            <td count-type="testSet">0</td>
            <td count-type="testReport">0</td>
        </tr>
        <tr class="text-c">
            <td>昨日</td>
            <td count-type="interfaceInfo">0</td>
            <td count-type="message">0</td>
            <td count-type="messageScene">0</td>
            <td count-type="testSet">0</td>
            <td count-type="testReport">0</td>
        </tr>
        <tr class="text-c">
            <td>本周</td>
            <td count-type="interfaceInfo">0</td>
            <td count-type="message">0</td>
            <td count-type="messageScene">0</td>
            <td count-type="testSet">0</td>
            <td count-type="testReport">0</td>
        </tr>
        <tr class="text-c">
            <td>本月</td>
            <td count-type="interfaceInfo">0</td>
            <td count-type="message">0</td>
            <td count-type="messageScene">0</td>
            <td count-type="testSet">0</td>
            <td count-type="testReport">0</td>
        </tr>
        </tbody>
    </table>
    <hr><br>
    <h3>&nbsp;系统公告</h3>
    <p id="notice">欢迎使用UI自动化测试平台</p>
</div>
<footer class="footer mt-20">
    <p><span id="copyright"></span></p>
</footer>
<script type="text/javascript" src="libs/jquery/1.9.1/jquery.js"></script>
<script type="text/javascript" src="libs/layer/2.1/layer.js"></script>
<script type="text/javascript" src="libs/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="js/globalUtils.js"></script>
<script type="text/javascript" src="js/constant.js"></script>
<script>
    $(document).ready(function(){
        //通过接口获取基本信息
        GLOBAL_UTILS.ajaxUtils.ajaxGet(REQUEST_URL.LOGIN.getCurrentUserInfo, function(data){
            //基本参数设置
            let SITE_SETTING = {
                roleName: "测试人员",
                realName: data.data.real_name,
                groupName: "自动化测试组",
                siteName: "易大师UI自动化测试平台",
                version: "v1.0.5",
                copyright: "MasterYi@2018-2019",
                lastLoginTime: GLOBAL_UTILS.dateUtils.getDay(-1)
            };

            $('#copyright').text(SITE_SETTING.copyright);
            $('#last_login_time').text(SITE_SETTING.lastLoginTime);
            $('#group_name').text(SITE_SETTING.groupName);
            $('#real_name').text(SITE_SETTING.realName);
            $('#siteName').text(SITE_SETTING.siteName);
            parent.$('#role_name').text(SITE_SETTING.roleName);
            parent.$('#real_name').text(SITE_SETTING.realName);
            parent.$('#siteName').text(SITE_SETTING.siteName);
            parent.$('#version').text(SITE_SETTING.version);
        });
    });
</script>
</body>
</html>
